//
//  MMScanBadgeViewController.m
//  ExhibitForcePrototype
//
//  Created by Dilyana Todorova on 12/5/12.
//  Copyright (c) 2012 Dilyana Todorova. All rights reserved.
//

#import "MMScanBadgeViewController.h"
#import "MainTabBarController.h"
#import "CheckoutViewController.h"

@interface MMScanBadgeViewController ()
@property (nonatomic, weak) IBOutlet UIButton * checkOutButton;
@end

@implementation MMScanBadgeViewController
@synthesize delegate;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    //[self performSelector:@selector(scanCompleted) withObject:nil afterDelay:1.5f];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
    self.checkOutButton = nil;
}

#pragma mark - additional functionality
//-(void) scanCompleted
//{
//    
//    if (self.delegate) {
//        [self.delegate scanFinished];
//    }
//    else
//    {
//        [self.navigationController popViewControllerAnimated:YES];
//    }
//}
#pragma mark - actions
- (IBAction)checkOutBadge:(id)sender{
    CheckoutViewController * checkoutViewController = [[CheckoutViewController alloc] initWithNibName:@"CheckoutViewController" bundle:nil];
    [self.navigationController pushViewController:checkoutViewController animated:YES];
}
@end
